<?php

namespace common\entities\myhtsq;

use Yii;

/**
 * This is the model class for table "myscrm_invoice_payment".
 *
 * @property string $invoice_payment_id
 * @property string $invoice_receivable_id
 * @property string $payment_id
 * @property string $cur_payment_amount
 * @property string $created_on
 * @property string $created_by
 * @property string $modified_on
 * @property string $modified_by
 */
class InvoicePaymentEntity extends \common\entities\ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_invoice_payment';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['cur_payment_amount'], 'number'],
            [['created_on', 'modified_on'], 'safe'],
            [['invoice_payment_id', 'invoice_receivable_id', 'payment_id', 'created_by', 'modified_by'], 'string', 'max' => 36]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'invoice_payment_id' => '关系ID',
            'invoice_receivable_id' => '发票与应收款关系ID',
            'payment_id' => '合同回款ID',
            'cur_payment_amount' => '本次回款金额',
            'created_on' => '创建时间',
            'created_by' => '创建人',
            'modified_on' => '修改时间',
            'modified_by' => '修改人',
        ];
    }
}
